<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SYMMETRY: resultsDB::cResultsBucket Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">SYMMETRY
   </div>
   <div id="projectbrief">ENGINEFORSCIENTIFICCOMPUTATION,VISUALIZATIONANDSIMULATION</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classresultsDB_1_1cResultsBucket.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classresultsDB_1_1cResultsBucket-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">resultsDB::cResultsBucket Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="results__bucket_8h_source.html">results_bucket.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for resultsDB::cResultsBucket:</div>
<div class="dyncontent">
<div class="center"><img src="classresultsDB_1_1cResultsBucket__coll__graph.png" border="0" usemap="#resultsDB_1_1cResultsBucket_coll__map" alt="Collaboration graph"/></div>
<map name="resultsDB_1_1cResultsBucket_coll__map" id="resultsDB_1_1cResultsBucket_coll__map">
<area shape="rect" id="node2" href="structresultsDB_1_1cResultsBucket_1_1bucket__header__entry.html" title="{resultsDB::cResultsBucket\l::bucket_header_entry\n|+ hash\l+ offset\l+ length\l|}" alt="" coords="5,6,187,127"/></map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structresultsDB_1_1cResultsBucket_1_1bucket__header__entry.html">bucket_header_entry</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a959c37146bc088b2d8d69d51c63ae227"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classresultsDB_1_1cResultsBucket.html#a959c37146bc088b2d8d69d51c63ae227">cResultsBucket</a> (std::size_t code)</td></tr>
<tr class="separator:a959c37146bc088b2d8d69d51c63ae227"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6c2a4b7bc33ba06861ddb123a79f2be"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af6c2a4b7bc33ba06861ddb123a79f2be"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>GetResult</b> (const std::size_t hash, const std::string &amp;params, std::string &amp;result) const </td></tr>
<tr class="separator:af6c2a4b7bc33ba06861ddb123a79f2be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a757169c7e12fe6db9f46ee889b34cd8b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a757169c7e12fe6db9f46ee889b34cd8b"></a>
unsigned short&#160;</td><td class="memItemRight" valign="bottom"><b>GetIndexBitsSz</b> () const </td></tr>
<tr class="separator:a757169c7e12fe6db9f46ee889b34cd8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf3099f9714a88cecc53f8211355e791"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abf3099f9714a88cecc53f8211355e791"></a>
const std::size_t&#160;</td><td class="memItemRight" valign="bottom"><b>GetCode</b> () const </td></tr>
<tr class="separator:abf3099f9714a88cecc53f8211355e791"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a280d00036ff59351e330b14eec2a070f"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; <a class="el" href="classresultsDB_1_1cResultsBucket.html">cResultsBucket</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classresultsDB_1_1cResultsBucket.html#a280d00036ff59351e330b14eec2a070f">SaveResult</a> (const std::size_t hash, const std::string &amp;params, const std::string &amp;result)</td></tr>
<tr class="separator:a280d00036ff59351e330b14eec2a070f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a38e798e137591db9b45f74383b06e86e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a38e798e137591db9b45f74383b06e86e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>cResultsBucket</b> (const <a class="el" href="classresultsDB_1_1cResultsBucket.html">cResultsBucket</a> &amp;)</td></tr>
<tr class="separator:a38e798e137591db9b45f74383b06e86e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afff806e1e24a90c60174893b0288307f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afff806e1e24a90c60174893b0288307f"></a>
<a class="el" href="classresultsDB_1_1cResultsBucket.html">cResultsBucket</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classresultsDB_1_1cResultsBucket.html#afff806e1e24a90c60174893b0288307f">operator=</a> (const <a class="el" href="classresultsDB_1_1cResultsBucket.html">cResultsBucket</a> &amp;)</td></tr>
<tr class="memdesc:afff806e1e24a90c60174893b0288307f"><td class="mdescLeft">&#160;</td><td class="mdescRight">!!!only used internally - keeps the same filename and copy only the contents <br/></td></tr>
<tr class="separator:afff806e1e24a90c60174893b0288307f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8fa946826308b7353d5d9b2ba839257"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af8fa946826308b7353d5d9b2ba839257"></a>
std::unique_ptr&lt; <a class="el" href="classresultsDB_1_1cResultsBucket.html">cResultsBucket</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Split</b> ()</td></tr>
<tr class="separator:af8fa946826308b7353d5d9b2ba839257"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5ea37bc3749dd9efe24d71c5081299a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae5ea37bc3749dd9efe24d71c5081299a"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>GetIndexBit</b> (const std::size_t hash) const </td></tr>
<tr class="separator:ae5ea37bc3749dd9efe24d71c5081299a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0c6adba5349cf2b13150f1db7f62637"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae0c6adba5349cf2b13150f1db7f62637"></a>
std::size_t&#160;</td><td class="memItemRight" valign="bottom"><b>GetFirstBits</b> (const std::size_t hash) const </td></tr>
<tr class="separator:ae0c6adba5349cf2b13150f1db7f62637"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a018ded0e19c66afe11a857e02ae1720d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a018ded0e19c66afe11a857e02ae1720d"></a>
std::size_t&#160;</td><td class="memItemRight" valign="bottom"><b>m_Code</b></td></tr>
<tr class="separator:a018ded0e19c66afe11a857e02ae1720d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac509595a30d4e9423c5f8f71c34b5713"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac509595a30d4e9423c5f8f71c34b5713"></a>
boost::iostreams::mapped_file&#160;</td><td class="memItemRight" valign="bottom"><b>m_MappedFile</b></td></tr>
<tr class="separator:ac509595a30d4e9423c5f8f71c34b5713"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ae295fcd93a98f9c80b6d96e336a9d6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ae295fcd93a98f9c80b6d96e336a9d6"></a>
unsigned short&#160;</td><td class="memItemRight" valign="bottom"><b>m_IndexBitsSz</b></td></tr>
<tr class="separator:a2ae295fcd93a98f9c80b6d96e336a9d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaea6a88e08d0601845161aad02dc7c7b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaea6a88e08d0601845161aad02dc7c7b"></a>
std::size_t&#160;</td><td class="memItemRight" valign="bottom"><b>m_End</b></td></tr>
<tr class="separator:aaea6a88e08d0601845161aad02dc7c7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42d5201e7159db580e9ca8c459df97e9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a42d5201e7159db580e9ca8c459df97e9"></a>
struct <a class="el" href="structresultsDB_1_1cResultsBucket_1_1bucket__header__entry.html">bucket_header_entry</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>m_HeaderEntry</b></td></tr>
<tr class="separator:a42d5201e7159db580e9ca8c459df97e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef2a7bf395f5d6a760934f849a89b023"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef2a7bf395f5d6a760934f849a89b023"></a>
std::size_t&#160;</td><td class="memItemRight" valign="bottom"><b>m_Entries</b></td></tr>
<tr class="separator:aef2a7bf395f5d6a760934f849a89b023"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>bucket for implementing the database(extendible hashing) that holds the result of presiously received commands </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a959c37146bc088b2d8d69d51c63ae227"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">resultsDB::cResultsBucket::cResultsBucket </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>code</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>opens the memory mapped file with the specified name if the newfile argument==true creates a new memory mapped file </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a280d00036ff59351e330b14eec2a070f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::unique_ptr&lt; <a class="el" href="classresultsDB_1_1cResultsBucket.html">cResultsBucket</a> &gt; resultsDB::cResultsBucket::SaveResult </td>
          <td>(</td>
          <td class="paramtype">const std::size_t&#160;</td>
          <td class="paramname"><em>hash</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>params</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>appends the result in the memory mapped file and returns a pointer to a new bucket if a split is needed the new bucket contains the entries that have the next bit 1 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="results__bucket_8h_source.html">results_bucket.h</a></li>
<li>results_bucket.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>resultsDB</b></li><li class="navelem"><a class="el" href="classresultsDB_1_1cResultsBucket.html">cResultsBucket</a></li>
    <li class="footer">Generated on Tue Feb 25 2014 17:12:06 for SYMMETRY by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
